package models
{
	import events.FeedEvent;
	
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class MainUIPresentationModel extends EventDispatcher
	{
		private var dispatcher:IEventDispatcher;
		
		public function MainUIPresentationModel(target:IEventDispatcher)
		{
			dispatcher = target;
			super(target);
		}
		
		public function fetchFeed(URL:String):void
		{
			var newEvent:FeedEvent = new FeedEvent(FeedEvent.GET);
			newEvent.feedURL = URL;
			dispatcher.dispatchEvent(newEvent);
		}
	}
}